//
//  SJRefresh.m
//  Recycling
//
//  Created by jzd on 2018/5/28.
//  Copyright © 2018年 宋佳. All rights reserved.
//

#import "SJRefresh.h"

@implementation SJRefresh

-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        //目前先不做任何外观调整
        self.automaticallyChangeAlpha = YES;
        // 隐藏时间
        //    header.lastUpdatedTimeLabel.hidden = YES;
        // 设置文字
        [self setTitle:@"下拉刷新" forState:MJRefreshStateIdle];
        [self setTitle:@"松开刷新" forState:MJRefreshStatePulling];
        [self setTitle:@"正在刷新..." forState:MJRefreshStateRefreshing];
        // 设置字体
        self.stateLabel.font = [UIFont systemFontOfSize:15];
    }
    return self;
}

@end
